import { defineMessage } from '@/locales'
import { useI18n } from 'vue-i18n'

import enUS from '../locales/en-US.json' with { type: 'json' }
import zhCN from '../locales/zh-CN.json' with { type: 'json' }

export function useLocalI18n() {
  return useI18n({
    useScope: 'local',
    messages: defineMessage(enUS, zhCN)
  })
}
